﻿using System;

using System.Runtime.Serialization;
using MaLu.Data;

namespace Malu.Entity
{

    [Serializable]
    [DataContract(Name = "SStudy")]
    [Table("SStudy", Info = "")]
    public class Study : BaseEntity
    {
        [DataMember]
        [Column("id", DataType.Int32, Length = 4, CanNull = false, AutoIncrement = true, PrimaryKey = true)]
        public int id { get; set; }

        [DataMember]
        [Column("name", DataType.VarChar, Length = 50)]
        public string name { get; set; }

        [DataMember]
        [Column("studentname", DataType.VarChar, Length = 50)]
        public string studentname { get; set; }

        [DataMember]
        [Column("gender", DataType.VarChar, Length = 2)]
        public string gender { get; set; }

        [DataMember]
        [Column("idnum", DataType.VarChar, Length = 20)]
        public string idnum { get; set; }

        [DataMember]
        [Column("household", DataType.VarChar, Length = 20)]
        public string household { get; set; }

        [DataMember]
        [Column("belongto", DataType.VarChar, Length = 6)]
        public string belongto { get; set; }

        [DataMember]
        [Column("address", DataType.VarChar, Length = 50)]
        public string address { get; set; }

        [DataMember]
        [Column("school", DataType.VarChar, Length = 50)]
        public string school { get; set; }

        [DataMember]
        [Column("money", DataType.Float)]
        public float money { get; set; }


        [DataMember]
        [Column("year", DataType.Int32, Length = 4)]
        public int year { get; set; }


        [DataMember]
        [Column("halfyear", DataType.Int32, Length = 4)]
        public int halfyear { get; set; }

       
    }
}
